<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <s:head theme="ajax"/>
    <title>My JSP 'firstDraftTime.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page"><!--
	<link rel="stylesheet" type="text/css" href="css/topicsTable.css">
	<link rel="stylesheet" type="text/css" href="css/topics.css">
	<link rel="stylesheet" type="text/css" href="css/content.css">
	<link rel="stylesheet" type="text/css" href="css/student.css">
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript" src="js/topics.js"></script>
	<script type="text/javascript" src="js/student.js"></script>

  -->
  	<link rel="stylesheet" type="text/css" href="../css/teacher.css">
  </head>
  
  <body>
  
  <div id="draft_container">
  <form action="startReport/setFirstDraftTime.action" method="post">
  	<table id="draft_table">
  		<tr>
  			<th>项目名称</th>
  			<th>学生</th>
  			<th>时间点</th>			
  		</tr>
  		<s:iterator value="topicss" id="topics" status="st">
  			<s:hidden name="topicss[%{#st.index}].topicsNum" value="%{#topics.topicsNum}"></s:hidden>
  			<s:hidden name="teacherTimePoint[%{#st.index}].timePointClass.TimePointClassNum" value="12"></s:hidden>
  			
  			<tr>
  				<td class="draft_table_td1">${topics.topicsName }</td>
  				<td class="draft_table_td2">${topics.student.name }</td>
  				<td class="draft_table_td3">
	  				<s:if test="teacherTimePoint[#st.index]!=null">
		  				<s:datetimepicker name="teacherTimePoint[%{#st.index}].p_time" value="%{teacherTimePoint[#st.index].p_time}"  displayFormat="yy-MM-dd" cssClass="draft_Time" theme="simple"/>
		  				<s:hidden name="teacherTimePoint[%{#st.index}].timePointNum" value="%{teacherTimePoint[#st.index].timePointNum}"></s:hidden>
	  				</s:if>
	  				<s:else>
		  				<s:datetimepicker name="teacherTimePoint[%{#st.index}].p_time" value=""  displayFormat="yy-MM-dd" theme="simple" cssClass="draft_Time"/>
		  				<s:hidden name="teacherTimePoint[%{#st.index}].timePointNum" value="0"></s:hidden>
	  				</s:else>
  				</td>
  			</tr>
  		</s:iterator>
  		<s:if test="topicss!=null">
  			<tr>
  				<td colspan="4" style="text-align: center;">
  					<input type="submit" value="设置"/>
  				</td>
  			</tr>
  		</s:if>
  	</table>
  	</form>
  	</div>
    <div id="mask" style="display: none"></div>
  </body>
</html>
